home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!news
- From: erik.gahlin@mailbox.swipnet.se (Erik Gahlin)
- Newsgroups: comp.lang.c
- Subject: How can I speed up graphics.
- Date: Sat, 20 Apr 1996 21:11:32 GMT
- Organization: SWS
- Message-ID: <4ldbf6$5hs@mn5.swip.net>
- Reply-To: erik.gahlin@mailbox.swipnet.se
- NNTP-Posting-Host: dialup106-3-9.swipnet.se
- NNTP-Posting-User: 8c4bb1b05dfdac079bbc9e08229f7b05
- X-Newsreader: Forte Free Agent 1.0.82
-
- I am writing a program i C (Borlands Turbo C 1.0 for DOS).
- I need to speed up the graphic a bit (Maybe ten times!).
-
- This is how I have written the function plot.
-
- #include<dos.h>
- void plot (int x,int y,int z)
- {
- union REGS r,s;
- r.h.ah=12;
- r.x.dx=y;
- r.x.cx=x;
- r.h.al=z;
- r.h.bh=0;
- int86(0x10,&r,&s);
- }
-
- I am using video mode 18 (640x480x16). Anybody have a fast routine
- that will speed up the graphic. Not using any complicated
- EGAVGABGI... bla.. bla driver.
-
- If anybody have a source code for a new plot please let me know.
-
- Erik Gahlin.
-
-
-